package Ventanas;
import java.awt.*;
import javax.swing.*;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * @author lucas
 */
public class VentanaErrorAutenticacion extends JFrame{

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}


	public VentanaErrorAutenticacion(){
		initComponents();
	}
	
	private void initComponents() {

		login = new JPanel();
		label2 = new JLabel();
		btnAceptar = new JButton();
		label1 = new JLabel();
	
		//======== this ========
		{
			this.setTitle("Error de autenticaci\u00f3n");
			this.setVisible(true);
			this.setResizable(false);
			this.setAlwaysOnTop(true);
			this.setIconImage(new ImageIcon("C:\\Documents and Settings\\LUCAS\\Escritorio\\SEMINARIO I\\images\\errorConexion.png").getImage());
			Container thisContentPane = this.getContentPane();
			thisContentPane.setLayout(null);
	
			//======== login ========
			{
				login.setLayout(null);
	
				//---- label2 ----
				label2.setText("Usuario o contrase\u00f1a incorrecto.");
				label2.setFont(label2.getFont().deriveFont(label2.getFont().getStyle() | Font.BOLD, label2.getFont().getSize() + 1f));
				login.add(label2);
				label2.setBounds(new Rectangle(new Point(82, 25), label2.getPreferredSize()));
	
				//---- btnAceptar ----
				btnAceptar.setText("Aceptar");
				btnAceptar.setSelectedIcon(null);
				btnAceptar.setIcon(new ImageIcon("C:\\Documents and Settings\\LUCAS\\Escritorio\\images\\errorLog.png"));
				login.add(btnAceptar);
				btnAceptar.setBounds(107, 84, 100, 25);
	
				//---- label1 ----
				label1.setIcon(new ImageIcon("C:\\Documents and Settings\\LUCAS\\Escritorio\\images\\alerta.png"));
				login.add(label1);
				label1.setBounds(25, 15, 55, 65);

				{ // compute preferred size
					Dimension preferredSize = new Dimension();
					for(int i = 0; i < login.getComponentCount(); i++) {
						Rectangle bounds = login.getComponent(i).getBounds();
						preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
						preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
					}
					Insets insets = login.getInsets();
					preferredSize.width += insets.right;
					preferredSize.height += insets.bottom;
					login.setMinimumSize(preferredSize);
					login.setPreferredSize(preferredSize);
				}
			}
			thisContentPane.add(login);
			login.setBounds(0, 0, 315, 120);
	
			{ // compute preferred size
				Dimension preferredSize = new Dimension();
				for(int i = 0; i < thisContentPane.getComponentCount(); i++) {
				
					Rectangle bounds = thisContentPane.getComponent(i).getBounds();
					preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
					preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
				}
				Insets insets = thisContentPane.getInsets();
				preferredSize.width += insets.right;
				preferredSize.height += insets.bottom;
				thisContentPane.setMinimumSize(preferredSize);
				thisContentPane.setPreferredSize(new java.awt.Dimension(297, 132));
			}
			this.pack();
			this.setSize(309, 167);
			this.setLocationRelativeTo(null);
		}
	}

	private JPanel login;
	private JLabel label2;
	private JButton btnAceptar;
	private JLabel label1;
}
